package com.lemon.smartsafety.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.lemon.smartsafety.R;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * 项目名称：workspace
 * 类描述：
 * 创建人：Fargo
 * 创建时间：2016/9/14 14:55
 * 修改人：Fargo
 * 修改时间：2016/9/14 14:55
 * 修改备注：
 */
public class ViewTag extends LinearLayout {


    @Bind(R.id.autoWrapLinearLayout)
    AutoWrapLinearLayout autoWrapLinearLayout;
    @Bind(R.id.lineTag)
    LinearLayout lineTag;
    @Bind(R.id.txt_tag_title)
    TextView txtTagTitle;
    private View view;

    public ViewTag(Context context) {
        super(context);
        // TODO Auto-generated constructor stub
        initView(context);
    }

    public ViewTag(Context context, AttributeSet attrs) {
        super(context, attrs);
        // TODO Auto-generated constructor stub
        initView(context);
    }


    private void initView(Context context) {
        LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        view = inflater.inflate(R.layout.view_tag, this);
        ButterKnife.bind(this, view);

    }


    public TextView getTxtTagTitle() {
        return txtTagTitle;
    }

    public void setTxtTagTitle(TextView txtTagTitle) {
        this.txtTagTitle = txtTagTitle;
    }

    public AutoWrapLinearLayout getAutoWrapLinearLayout() {
        return autoWrapLinearLayout;
    }

    public void setAutoWrapLinearLayout(AutoWrapLinearLayout autoWrapLinearLayout) {
        this.autoWrapLinearLayout = autoWrapLinearLayout;
    }

    public LinearLayout getLineTag() {
        return lineTag;
    }

    public void setLineTag(LinearLayout lineTag) {
        this.lineTag = lineTag;
    }
}